Recognize "stylus" devices as GDK_SOURCE_PEN
authorNate Eldredge <nate@thatsmathematics.com>
Sun, 29 May 2022 21:12:37 +0000 (15:12 -0600)
committerNate Eldredge <nate@thatsmathematics.com>
Sun, 29 May 2022 21:30:19 +0000 (15:30 -0600)
commit5faa300c5ea73e2093746168c6d003bc3ec56c4c
tree117cf5ee302b1749db7ca161c981e5001f002ed0
parent491d1f67c70ac6bb0fe2cf413feb9199e4414c2e
Recognize "stylus" devices as GDK_SOURCE_PEN

Add "stylus" to the list of substrings in a device name that cause it to be recognized
as a GDK_SOURCE_PEN device (previously "wacom", "pen" and "eraser").  Some devices
just use "stylus" in their name, and are otherwise recognized as
GDK_SOURCE_TOUCHSCREEN instead.

Fixes #4394.
gdk/x11/gdkdevicemanager-xi2.c